#ifndef __IPADDRESS_H
#define __IPADDRESS_H

#include <forward_list>

class IPAddress
{
	public:
	char *IP;
	int Length;
	IPAddress(const char *ip,int length);
	IPAddress();
	~IPAddress();
	void Clear();
	static bool IsIP(const char *ip); // Is this an IP address? You can't trust the database because it might have been hacked.
	IPAddress& operator=(IPAddress& other); // Moves IP from other to this.
	IPAddress& operator=(const char *ip);
	static int Compare(IPAddress *first,IPAddress *second);
};

#endif